<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Execute a prepared query</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.ingres-escape-string.html">ingres_escape_string</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.ingres-fetch-array.html">ingres_fetch_array</a></div>
 <div class="up"><a href="ref.ingres.html">Ingres 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.ingres-execute" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ingres_execute</h1>
  <p class="verinfo">(PECL ingres &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">ingres_execute</span> &mdash; <span class="dc-title">Execute a prepared query</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.ingres-execute-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>ingres_execute</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$result</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$params</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$types</code></span>
  ]] )</div>

  <p class="para rdfs-comment">
   Execute a query prepared using <span class="function"><a href="function.ingres-prepare.html" class="function">ingres_prepare()</a></span>.
  </p>

  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <strong>Related Configurations</strong><br />
   <p class="para">
    See also the <a href="ingres.configuration.html#ini.ingres.describe" class="link">ingres.describe</a>,
    <a href="ingres.configuration.html#ini.ingres.scrollable" class="link">ingres.scrollable</a> and
    <a href="ingres.configuration.html#ini.ingres.utf8" class="link">ingres.utf8</a> directives in 
    <a href="ingres.configuration.html" class="link">Runtime Configuration</a>.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ingres-execute-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">result</code></em></dt>

     <dd>

      <p class="para">
       The result query identifier
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">params</code></em></dt>

     <dd>

      <p class="para">
       An array of parameter values to be used with the query
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">types</code></em></dt>

     <dd>

      <p class="para">
       A string containing a sequence of types for the parameter values
       passed. See the <a href="function.ingres-query.html#function.ingres-query.types" class="link">types</a> parameter in
       <span class="function"><a href="function.ingres-query.html" class="function">ingres_query()</a></span> for the list of type codes.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ingres-execute-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
  成功时返回 <strong><code>TRUE</code></strong>， 或者在失败时返回 <strong><code>FALSE</code></strong>。
  </p>
 </div>




 <div class="refsect1 seealso" id="refsect1-function.ingres-execute-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.ingres-unbuffered-query.html" class="function" rel="rdfs-seeAlso">ingres_unbuffered_query()</a> - Send an unbuffered  SQL query to Ingres</span></li>
    <li class="member"><span class="function"><a href="function.ingres-fetch-array.html" class="function" rel="rdfs-seeAlso">ingres_fetch_array()</a> - Fetch a row of result into an array</span></li>
    <li class="member"><span class="function"><a href="function.ingres-fetch-assoc.html" class="function" rel="rdfs-seeAlso">ingres_fetch_assoc()</a> - Fetch a row of result into an associative array</span></li>
    <li class="member"><span class="function"><a href="function.ingres-fetch-object.html" class="function" rel="rdfs-seeAlso">ingres_fetch_object()</a> - Fetch a row of result into an object</span></li>
    <li class="member"><span class="function"><a href="function.ingres-fetch-row.html" class="function" rel="rdfs-seeAlso">ingres_fetch_row()</a> - Fetch a row of result into an enumerated array</span></li>
    <li class="member"><span class="function"><a href="function.ingres-commit.html" class="function" rel="rdfs-seeAlso">ingres_commit()</a> - Commit a transaction</span></li>
    <li class="member"><span class="function"><a href="function.ingres-rollback.html" class="function" rel="rdfs-seeAlso">ingres_rollback()</a> - Roll back a transaction</span></li>
    <li class="member"><span class="function"><a href="function.ingres-autocommit.html" class="function" rel="rdfs-seeAlso">ingres_autocommit()</a> - Switch autocommit on or off</span></li>
    <li class="member"><span class="function"><a href="function.ingres-set-environment.html" class="function" rel="rdfs-seeAlso">ingres_set_environment()</a> - Set environment features controlling output options</span></li>
    <li class="member"><span class="function"><a href="function.ingres-errno.html" class="function" rel="rdfs-seeAlso">ingres_errno()</a> - Get the last Ingres error number generated</span></li>
    <li class="member"><span class="function"><a href="function.ingres-error.html" class="function" rel="rdfs-seeAlso">ingres_error()</a> - Get a meaningful error message for the last error generated</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.ingres-escape-string.html">ingres_escape_string</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.ingres-fetch-array.html">ingres_fetch_array</a></div>
 <div class="up"><a href="ref.ingres.html">Ingres 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
